package cn.ac.iscas.domain.job;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class GlobeJobTypeMap {
    private static Map<String, JobType> queue = new ConcurrentHashMap<>(64);

    public static void put(String jobId, JobType jobType) {
        synchronized (queue) {
            queue.put(jobId, jobType);
        }
    }

    public static JobType get(String jobId) {
        return queue.get(jobId);
    }
}
